<html>
    <head>
        <title><?= $page_title ?></title>
        <base href="<?= $this->config->item('base_url') ?>" />
        <script type="text/javascript" src="<?php echo base_url();?>js/swfobject.js"></script>
        <style type="text/css"> 
            body {
                background-color: #fff;
                margin: 40px;
                font-family: Lucida, Verdana, Sans-serif;
                font-size: 16px;
                color: #4F5155;
            }

            div, h1 {
                margin: 1em 0;
            }

            iframe {
                border: 1px solid silver;
            }

            a {
                color: #003399;
                background-color: transparent;
                font-weight: normal;
            }

            h1 {
                color: #444;
                background-color: transparent;
                font-size: 16px;
                font-weight: bold;
            }
        </style>
    </head>
    <body>
        <div style="height:228px; width:228px; margin-bottom:10px;">
                <div id="pie1_chart">
                    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
                        codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
                        width="500"
                        height="250" id="graph-2" align="middle">
                     
                        <param name="allowScriptAccess" value="sameDomain" />
                        <param name="movie" value="<?php echo $this->baseUrl ?>/chart/open-flash-chart.swf" />
                        <param name="quality" value="high" />
                        <embed src="<?php echo $this->baseUrl ?>/chart/open-flash-chart.swf"
                               quality="high"
                               bgcolor="#FFFFFF"
                               width="500"
                               height="250"
                               name="open-flash-chart"
                               align="middle"
                               allowScriptAccess="sameDomain"
                               type="application/x-shockwave-flash"
                               pluginspage="http://www.macromedia.com/go/getflashplayer" />
                    </object>
                </div>
                </div>
        <h1><?= $page_title ?></h1>
        <script type="text/javascript">
            swfobject.embedSWF(
              "<?php echo base_url();?>img/open-flash-chart.swf", "test_chart",
              "<?= $chart_width ?>", "<?= $chart_height ?>",
              "9.0.0", "expressInstall.swf",
              {"data-file":"<?= urlencode($data_url) ?>"}
            );
        </script>

        <div id="test_chart"></div>

        <div id="links">
            <? foreach ($links as $title => $url): ?>
                <a href="<?= $url ?>"><?=$title?></a>&nbsp;
            <? endforeach ?>
        </div>
    </body>
</html>
